<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>在canvas中拖动、绘制</title>
    <style>
      canvas {
        display: block;
        margin: 0 auto;
        background: #dddddd;
      }
    </style>
  </head>
  <body>
    <input type="color" />
    <br />
    <canvas></canvas>
    <script src="./index.js"></script>
  </body>
</html>
